package by.ins.app.console;

import org.apache.log4j.Logger;

import by.ins.app.commands.AppCommnandProvider;
import by.ins.app.commands.ManagedTaskCommandBulder;
import by.yativem.commons.console.ConsoleCommandBean;
import by.yativem.commons.console.IConsoleClient;


@Deprecated
public class EmbededAppConsoleClient implements IConsoleClient {
	private static final Logger log = Logger
			.getLogger(EmbededAppConsoleClient.class);
	
	private AppCommnandProvider appCommnandProvider;

	@Override
	public Object sendCommand(ConsoleCommandBean commandBean) {
			ManagedTaskCommandBulder.buildTaskCommand(commandBean);
			return appCommnandProvider.sendCommand(commandBean);
		
	}

	public AppCommnandProvider getAppCommnandProvider() {
		return appCommnandProvider;
	}

	public void setAppCommnandProvider(AppCommnandProvider appCommnandProvider) {
		this.appCommnandProvider = appCommnandProvider;
	}

	@Override
	public void sendMessageToConsole(String mssg) {
		// TODO Auto-generated method stub
		
		throw new UnsupportedOperationException("Method do not implemented");
		//
	}
}
